package com.lizhongbao.cloud.db.domain.dto;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lizhongbao
 * @since 2019-12-19
 */
public class TestTableSaveDto implements Serializable {

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    @Size(max = 10, min = 2, message = "姓名长度要在2-10之间")
    private String name;

    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空")
    @Max(value = 200, message = "年龄不可大于200")
    @Min(value = 0, message = "年龄不可大于300")
    private Integer age;

    /**
     * 身高
     */
    @Max(value = 300, message = "身高不可大于300")
    private BigDecimal height;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 类型
     */
    private Integer type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {
        this.height = height;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
